//
//  ZPActivityViewController.m
//  ZPIOSEducation
//
//  Created by mini1 on 2016/11/29.
//  Copyright © 2016年 mini1. All rights reserved.
//

#import "ZPActivityViewController.h"

@interface ZPActivityViewController ()

@end

@implementation ZPActivityViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.view.backgroundColor = zRandomColor;
    self.navigationItem.title = @"活动";
    
//    [self setupDismissBtn];
}


- (void)setupDismissBtn {
    
    UIButton * btn = [UIButton buttonWithType:UIButtonTypeContactAdd];
    btn.center = CGPointMake(self.view.bounds.size.width / 10*9, self.view.bounds.size.height / 10);
    [btn addTarget:self action:@selector(btnAction) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)btnAction{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
